package com.dmap.run.service;

import com.dmap.run.controller.api.param.ClimbingRecordParam;
import com.dmap.run.po.ClimbingRecord;
import com.dmap.run.vo.ClimbingRecordHistoryVo;

import java.util.List;

/**
 * \* User: silent
 * \* Date: 08/06/18 Time: 上午 11:59
 * \* Description:
 * \
 */
public interface ClimbingRecordService {


    boolean insertClimbingRecord(ClimbingRecordParam param);

    /**
     * @return 存在：true ,不存在： false
     */
    boolean isExistClimbingRecord(long userId,long startTime,long endTime);

    ClimbingRecordHistoryVo selectClimbingRecordHistoryList(long userId);

    List<ClimbingRecord> selectClimbingRecordListByPage(long userId, int pageIndex, int pageSize);

    ClimbingRecord selectClimbingRecordById(long climbingRecordId);

    /**
     * 获取用户总公里数 ,单位米
     * @param userId
     */
    int selectUserTotalDistance(long userId);

}
